Skip to content

Commit

Permalink
Manually set experiment id
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Aug 7, 2024
1 parent 3cd53ab commit c271687
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions treatment-service/models/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ func TestDumpExperiments(t *testing.T) {
time.Date(2022, 1, 2, 3, 5, 7, 0, time.UTC),
), segmentersType)
require.NoError(t, err)

// Manually set experiment id so it matches the id in the dump
e.Id = 81
storage := LocalStorage{
Experiments: map[ProjectId][]*ExperimentIndex{
1: {NewExperimentIndex(e)},
Expand Down
2 changes: 1 addition & 1 deletion treatment-service/testdata/experiments_dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"RealSets": {},
"StartTime": "2021-01-02T03:05:07Z",
"EndTime": "2022-01-02T03:05:07Z",
"ExperimentId": 60,
"ExperimentId": 81,
"Status": "Active",
"Tier": "Default"
}
Expand Down

0 comments on commit c271687

Please sign in to comment.