Skip to content

Commit

Permalink
allow any type of context in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Jun 7, 2024
1 parent f18cb6d commit 26a681f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/integration_test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func tableTest(t *testing.T, log *logrus.Entry, testDevice *pb.Device, deviceFai
})
}

osConfigurator.EXPECT().TeardownInterface(mock.AnythingOfType("*context.timerCtx")).Return(nil).Maybe()
osConfigurator.EXPECT().TeardownInterface(mock.AnythingOfType("context.Context")).Return(nil).Maybe()

helperListener, stopHelper := serve(t, NewHelper(t, log.WithField("component", "helper"), osConfigurator), wg)

Expand Down

0 comments on commit 26a681f

Please sign in to comment.