Skip to content

Commit

Permalink
fix: a failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Oct 8, 2024
1 parent bb1056c commit ad68f5b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pkg/sidecars/tshark/tshark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ func TestTsharkValidateConfig(t *testing.T) {
}

func TestTsharkClone(t *testing.T) {
testInstance, err := instance.New("testInstance", &system.SystemDependencies{})
testInstance, err := instance.New("testInstance",
&system.SystemDependencies{
Logger: logrus.New(),
})
require.NoError(t, err)

err = testInstance.Build().SetImage(context.Background(), "testImage")
require.NoError(t, err)

err = testInstance.Build().Commit(context.Background())
require.NoError(t, err)

tshark := &Tshark{
Expand All @@ -184,8 +193,8 @@ func TestTsharkClone(t *testing.T) {
UploadInterval: time.Minute * 5,
instance: testInstance,
}

clonePrefixName := "test-clone-prefix"

clone, err := tshark.Clone(clonePrefixName)
require.NoError(t, err)

Expand Down

0 comments on commit ad68f5b

Please sign in to comment.