Skip to content

Commit

Permalink
fix: database test
Browse files Browse the repository at this point in the history
partitions are only created for the next 24h. This means that tests that
assume data >100h in the future won't have a partition to store the data
in. This commit fixes that.
  • Loading branch information
dennis-tra committed Nov 28, 2023
1 parent 9b1dcac commit 55ec088
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/db/client_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ func TestClient_SessionScenario_2(t *testing.T) {
null.JSONFrom(marshalProperties(t, "is_exposed", false)),
)
require.NoError(t, err)
visitStart = time.Now().Add(100 * time.Hour)
visitEnd = time.Now().Add(100 * time.Hour).Add(time.Second)
visitStart = time.Now().Add(22 * time.Hour)
visitEnd = time.Now().Add(22 * time.Hour).Add(time.Second)
ivr, err = client.PersistDialVisit(
peerID,
[]multiaddr.Multiaddr{ma1, ma2},
Expand All @@ -510,8 +510,8 @@ func TestClient_SessionScenario_2(t *testing.T) {
"",
)

visitStart = time.Now().Add(101 * time.Hour).Add(time.Second)
visitEnd = time.Now().Add(101 * time.Hour)
visitStart = time.Now().Add(23 * time.Hour).Add(time.Second)
visitEnd = time.Now().Add(23 * time.Hour)
ivr, err = client.PersistDialVisit(
peerID,
[]multiaddr.Multiaddr{ma1, ma2},
Expand Down

0 comments on commit 55ec088

Please sign in to comment.