Skip to content
Snippets Groups Projects
Select Git revision
  • 1ee0e0f05c6c00e5400b0ff14316d2dec3bd8635
  • master default protected
  • 0.5.9
  • 0.5.8
  • 0.5.7
  • 0.5.6
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.5.1
  • 0.5.0
  • 0.4.17
  • 0.4.16
  • 0.4.15
  • 0.4.14
  • 0.4.13
  • 0.4.12
  • 0.4.11
  • 0.4.10
  • 0.4.9
  • 0.4.8
22 results

yaml.go

Blame
  • runnable-counter_test.go 487 B
    // Copyright 2023 schukai GmbH
    // SPDX-License-Identifier: AGPL-3.0
    
    package jobqueue
    
    import (
    	"testing"
    
    	"context"
    )
    
    func TestRunnableCounter(t *testing.T) {
    
    	runner := &CounterRunnable{}
    
    	ctx := context.Background()
    
    	r, err := runner.Run(ctx)
    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	if r.Status != ResultStatusSuccess {
    		t.Errorf("Unexpected result status: %v", r.Status)
    	}
    
    	if r.Data.Count != 1 {
    		t.Errorf("Unexpected result data: %v", r.Data)
    	}
    
    }