Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7ba1711

Browse files
committedFeb 28, 2025·
Fix ut
1 parent 2c8b4ed commit 7ba1711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pkg/epp/datastore/datastore_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func TestRandomWeightedDraw(t *testing.T) {
297297
},
298298
},
299299
},
300-
want: "v1.1",
300+
want: "canary",
301301
},
302302
}
303303
var seedVal int64 = 420
@@ -306,7 +306,7 @@ func TestRandomWeightedDraw(t *testing.T) {
306306
for range 10000 {
307307
model := RandomWeightedDraw(logger, test.model, seedVal)
308308
if model != test.want {
309-
t.Errorf("Model returned!: %v", model)
309+
t.Errorf("Model returned: %v != %v", model, test.want)
310310
break
311311
}
312312
}

0 commit comments

Comments
 (0)
Please sign in to comment.