Skip to content

Commit

Permalink
fix test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jun 30, 2023
1 parent 8f6140d commit 768c9b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ func TestUpdateImage(t *testing.T) {
defer teardown()

input := UpdateImageParams{
ID: "ZxR0pLaXRldlBtaFhhO2FiZGVnaA",
RequireSignedURLs: true,
Metadata: map[string]interface{}{
"meta": "metaID",
Expand Down Expand Up @@ -142,7 +141,13 @@ func TestUpdateImage(t *testing.T) {
mux.HandleFunc("/accounts/"+testAccountID+"/images/v1/ZxR0pLaXRldlBtaFhhO2FiZGVnaA", handler)
want := expectedImageStruct

actual, err := client.UpdateImage(context.Background(), AccountIdentifier(testAccountID), input)
actual, err := client.UpdateImage(context.Background(), AccountIdentifier(testAccountID), UpdateImageParams{
ID: "ZxR0pLaXRldlBtaFhhO2FiZGVnaA",
RequireSignedURLs: true,
Metadata: map[string]interface{}{
"meta": "metaID",
},
})

if assert.NoError(t, err) {
assert.Equal(t, want, actual)
Expand Down

0 comments on commit 768c9b2

Please sign in to comment.