Skip to content

Commit

Permalink
Fix TestProvisioningFactoryReset when running with libfaketime
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Sep 11, 2024
1 parent 5369297 commit c5a82d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion device-provisioning-service/service/provision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ func TestProvisioningFactoryReset(t *testing.T) {

deviceID, _ = test.OnboardDpsSim(ctx, t, c, deviceID, dpcCfg.APIs.COAP.Addr, test.TestDevsimResources)

devClient, err := sdk.NewClient(sdk.WithID(events.OwnerToUUID(test.DPSOwner)))
// extended validity is needed when running tests with libfaketime
devClient, err := sdk.NewClient(sdk.WithID(events.OwnerToUUID(test.DPSOwner)), sdk.WithValidity("2000-01-01T12:00:00Z", "876000h"))
require.NoError(t, err)
defer func() {
_ = devClient.Close(ctx)
Expand Down

0 comments on commit c5a82d3

Please sign in to comment.