Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmat11 committed Jan 11, 2024
1 parent 83d2841 commit 03778d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions testing/testrunner/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion testing/testrunner/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03778d7

Please sign in to comment.