diff --git a/pkg/observer/observer_test_helper.go b/pkg/observer/observer_test_helper.go index 8b1d3cbf187..626fb803561 100644 --- a/pkg/observer/observer_test_helper.go +++ b/pkg/observer/observer_test_helper.go @@ -273,7 +273,9 @@ func getDefaultObserverSensors(t *testing.T, ctx context.Context, base *sensors. option.Config.Verbosity = 1 } - loadExporter(t, ctx, obs, &o.exporter, &o.observer) + if err := loadExporter(t, ctx, obs, &o.exporter, &o.observer); err != nil { + return nil, ret, err + } cnf, _ := readConfig(o.observer.config) if cnf != nil { diff --git a/pkg/sensors/tracing/kprobe_copyfd_test.go b/pkg/sensors/tracing/kprobe_copyfd_test.go index fcb49f92252..e79c66bdbc6 100644 --- a/pkg/sensors/tracing/kprobe_copyfd_test.go +++ b/pkg/sensors/tracing/kprobe_copyfd_test.go @@ -17,7 +17,6 @@ import ( "strconv" "sync" "testing" - "time" "github.com/cilium/tetragon/api/v1/tetragon" ec "github.com/cilium/tetragon/api/v1/tetragon/codegen/eventchecker" @@ -42,7 +41,7 @@ func TestCopyFd(t *testing.T) { var doneWG, readyWG sync.WaitGroup defer doneWG.Wait() - ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) + ctx, cancel := context.WithTimeout(context.Background(), tus.Conf().CmdWaitTime) defer cancel() testBin := testutils.ContribPath("tester-progs/dup-tester") diff --git a/tools/split-tetragon-gotests/main.go b/tools/split-tetragon-gotests/main.go index 08a7f0f7249..9dcb9475c1b 100644 --- a/tools/split-tetragon-gotests/main.go +++ b/tools/split-tetragon-gotests/main.go @@ -49,8 +49,6 @@ var CiBlacklist = []vmtests.GoTest{ // was a previous attempt to fix the test, but failed. Ignore it for // now. {PackageProg: "pkg.exporter"}, - // https://github.com/cilium/tetragon/issues/247 - {PackageProg: "pkg.sensors.tracing", Test: "TestCopyFd"}, } func usage() {