Skip to content
Snippets Groups Projects
Select Git revision
  • 791225108def714ec5eaa5e8968fc5488fed9fd0
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
22 results

runnable-fileoperation_test.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)
    	}
    
    }