mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
18 lines
378 B
Go
18 lines
378 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package task
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
// This file exists so `go test` on the task adapter stays valid.
|
|
func TestSetServiceNil(t *testing.T) {
|
|
SetService(nil)
|
|
if _, err := DispatchTask(context.Background(), "x", nil, "test"); err == nil {
|
|
t.Fatal("expected error when task service is nil")
|
|
}
|
|
}
|