Skip to content

Commit 37675ec

Browse files
committed
Review feedback
1 parent 1cde27c commit 37675ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sa/model_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"fmt"
1212
"math/big"
1313
"net/netip"
14+
"slices"
1415
"testing"
1516
"time"
1617

@@ -251,8 +252,12 @@ func TestModelToOrderAuthzs(t *testing.T) {
251252
for _, tc := range testCases {
252253
t.Run(tc.name, func(t *testing.T) {
253254
order, err := modelToOrder(tc.model)
254-
test.AssertNotError(t, err, "modelToOrder failed")
255-
test.AssertDeepEquals(t, order.V2Authorizations, tc.expectedAuthzIDs)
255+
if err != nil {
256+
t.Fatalf("modelToOrder(%v) = %s, want success", tc.model, err)
257+
}
258+
if !slices.Equal(order.V2Authorizations, tc.expectedAuthzIDs) {
259+
t.Errorf("modelToOrder(%v) = %v, want %v", tc.model, order.V2Authorizations, tc.expectedAuthzIDs)
260+
}
256261
})
257262
}
258263
}

0 commit comments

Comments
 (0)