Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Aug 28, 2024
1 parent 383c3cd commit 814874d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions tests/incentive-allocation/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ func TestGolden(t *testing.T) {
"-solve.duration", "10s",
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.version.sdk", Replacement: golden.StableVersion},
{Key: "$.version.go-mip", Replacement: golden.StableVersion},
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
},
Thresholds: golden.Tresholds{
Float: 0.01,
Expand Down
8 changes: 4 additions & 4 deletions tests/knapsack/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ func TestGolden(t *testing.T) {
"-solve.duration", "10s",
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.version.sdk", Replacement: golden.StableVersion},
{Key: "$.version.go-mip", Replacement: golden.StableVersion},
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
},
Thresholds: golden.Tresholds{
Float: 0.01,
Expand Down
10 changes: 5 additions & 5 deletions tests/meal-allocation/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ func TestGolden(t *testing.T) {
"-solve.duration", "10s",
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.version.sdk", Replacement: golden.StableVersion},
{Key: "$.version.go-mip", Replacement: golden.StableVersion},
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
},
DedicatedComparison: []string{
".statistics.result.value",
"$.statistics.result.value",
},
},
)
Expand Down
10 changes: 5 additions & 5 deletions tests/shift-scheduling/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ func TestGolden(t *testing.T) {
"-solve.duration", "10s",
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.version.sdk", Replacement: golden.StableVersion},
{Key: "$.version.go-mip", Replacement: golden.StableVersion},
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
},
DedicatedComparison: []string{
".statistics.result.value",
"$.statistics.result.value",
},
},
)
Expand Down
8 changes: 4 additions & 4 deletions tests/solve_control_parameters/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func TestGolden(t *testing.T) {
"-solve.control.string", "presolve=off",
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.version.sdk", Replacement: golden.StableVersion},
{Key: "$.version.go-mip", Replacement: golden.StableVersion},
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
},
Thresholds: golden.Tresholds{
Float: 0.01,
Expand Down

0 comments on commit 814874d

Please sign in to comment.