Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Sep 21, 2023
1 parent 4a8be17 commit 9d53e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/debug/shipping/shipping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestShip(t *testing.T) {
knapsack := tt.mockKnapsack(t)
knapsack.On("DebugUploadRequestURL").Return(fmt.Sprintf("%s/signedurl", testServer.URL))

tt.assertion(t, Ship(log.NewNopLogger(), knapsack, bytes.NewBuffer([]byte("ahhhhh"))))
tt.assertion(t, Ship(log.NewNopLogger(), knapsack, "some note", bytes.NewBuffer([]byte("ahhhhh"))))
})
}
}
Expand Down Expand Up @@ -141,7 +141,7 @@ func TestShipErrors(t *testing.T) {
k.On("DebugUploadRequestURL").Return(fmt.Sprintf("%s/signedurl", testServer.URL))
k.On("EnrollSecret").Return("")

require.Error(t, Ship(log.NewNopLogger(), k, bytes.NewBuffer([]byte("ahhhhh"))))
require.Error(t, Ship(log.NewNopLogger(), k, "some note", bytes.NewBuffer([]byte("ahhhhh"))))
})
}
}

0 comments on commit 9d53e22

Please sign in to comment.