chore: establish local platform baseline
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package observability
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestInstrumentDependencyCheckPreservesResult(t *testing.T) {
|
||||
expected := errors.New("unavailable")
|
||||
check := InstrumentDependencyCheck("test", "dependency", func(context.Context) error { return expected })
|
||||
if err := check(context.Background()); !errors.Is(err, expected) {
|
||||
t.Fatalf("error = %v", err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user