Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Mar 20, 2024
1 parent a351109 commit 8f70313
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions flow/e2e/snowflake/peer_flow_sf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,13 +1150,7 @@ func (s PeerFlowE2ETestSuiteSF) Test_Interval_SF() {
_, err = s.Conn().Exec(context.Background(), fmt.Sprintf(`
INSERT INTO e2e_test_%s.%s(dur)
SELECT
make_interval(
20,
floor(random() * 24)::int,
floor(random() * 60)::int,
floor(random() * 60)::int,
floor(random() * 30)::int
);
'2 days'
`, s.pgSuffix, "testintervalsf"))
e2e.EnvNoError(s.t, env, err)

Expand All @@ -1171,6 +1165,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Interval_SF() {
)
env.Cancel()
e2e.RequireEnvCanceled(s.t, env)
err = s.checkJSONValue(dstTableName, "dur", "days", "20")
err = s.checkJSONValue(dstTableName, "dur", "days", "2")
require.NoError(s.t, err)
}

0 comments on commit 8f70313

Please sign in to comment.