Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package jobs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func TestEnqueueFeedSyncJobNilQueue(t *testing.T) {
|
||||
var q *Queue
|
||||
err := q.EnqueueFeedSyncJob(context.Background(), uuid.New())
|
||||
if err == nil {
|
||||
t.Fatal("expected error for nil queue")
|
||||
}
|
||||
q = &Queue{}
|
||||
err = q.EnqueueFeedSyncJob(context.Background(), uuid.New())
|
||||
if err == nil {
|
||||
t.Fatal("expected error for nil pool")
|
||||
}
|
||||
}
|
||||
|
||||
func TestEnqueueProcessingJobNilQueue(t *testing.T) {
|
||||
var q *Queue
|
||||
err := q.EnqueueProcessingJob(context.Background(), uuid.New())
|
||||
if err == nil {
|
||||
t.Fatal("expected error for nil queue")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user