zeroshade commented on code in PR #2763:
URL: https://github.com/apache/iceberg-go/pull/2763#discussion_r4743936889


##########
table/expire_replay_test.go:
##########
@@ -265,8 +265,8 @@ func TestExpireSnapshotsLoadsFullHistoryWithStagedAppend(t 
*testing.T) {
                time.Sleep(time.Second)
 
                opts := []ExpireSnapshotsOpt{WithOlderThan(0), 
WithRetainLast(2), WithPostCommit(false)}
-               require.NoError(t, tx.ExpireSnapshots(opts...))
-               require.NoError(t, tx.ExpireSnapshotsWithContext(t.Context(), 
opts...))
+               require.NoError(t, tx.ExpireSnapshots(t.Context(), opts...))
+               require.NoError(t, tx.ExpireSnapshots(t.Context(), opts...))

Review Comment:
   nit: these two lines used to exercise both entry points. After the rename 
they're the same call, so the second just stages an identical second 
expiration. Drop one, or add a comment if checking that a repeated expiry is a 
no-op is intended.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to