Skip to content

Commit 3810bc7

Browse files
committed
chore: fix flaky assets handler test due to time drift
1 parent 35d5f2f commit 3810bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/serve/httphandler/assets_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ func Test_AssetHandler_submitChangeTrustTransaction_makeSurePreconditionsAreSetA
19391939
mocks.Handler.GetPreconditionsFn = nil
19401940

19411941
txParams := txParamsWithoutPreconditions
1942-
txParams.Preconditions = defaultPreconditions
1942+
txParams.Preconditions = txnbuild.Preconditions{TimeBounds: txnbuild.NewTimeout(20)}
19431943
tx, err := txnbuild.NewTransaction(txParams)
19441944
require.NoError(t, err)
19451945

0 commit comments

Comments
 (0)