diff --git a/testing/testrunner/tests.go b/testing/testrunner/tests.go index 71ab9476..f94eaac0 100644 --- a/testing/testrunner/tests.go +++ b/testing/testrunner/tests.go @@ -407,6 +407,7 @@ func TestFileModify(et *EventsTraceInstance) { var event FileModifyEvent line := et.GetNextEventJson("FILE_MODIFY") if err := json.Unmarshal([]byte(line), &event); err != nil { + fmt.Println("GREPME", len(events), events) TestFail("failed to unmarshal JSON: ", err) } diff --git a/testing/testrunner/utils.go b/testing/testrunner/utils.go index 248ccbdc..c35ba5f5 100644 --- a/testing/testrunner/utils.go +++ b/testing/testrunner/utils.go @@ -343,7 +343,7 @@ func RunTest(f func()) { func RunEventsTest(f func(*EventsTraceInstance), args ...string) { testFuncName := runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name() - ctx, cancel := context.WithTimeout(context.TODO(), 30*time.Second) + ctx, cancel := context.WithTimeout(context.TODO(), time.Minute) et := NewEventsTrace(ctx, args...) et.Start(ctx)