Skip to content

Commit 5d6ee48

Browse files
committed
update error message
1 parent 397bb4f commit 5d6ee48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

azureappconfiguration/azureappconfiguration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ func (azappcfg *AzureAppConfiguration) startupWithRetry(ctx context.Context, tim
721721
// Wait for the backoff duration before retrying
722722
select {
723723
case <-startupCtx.Done():
724-
return fmt.Errorf("startup context cancelled during backoff: %w", startupCtx.Err())
724+
return fmt.Errorf("load from Azure App Configuration timed out: %w", startupCtx.Err())
725725
case <-time.After(backoffDuration):
726726
// Continue to next retry attempt
727727
}

azureappconfiguration/failover_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ func TestStartupWithRetry_ContextCancelledDuringBackoff(t *testing.T) {
823823
err := azappcfg.startupWithRetry(ctx, 10*time.Second, operation)
824824

825825
assert.Error(t, err)
826-
assert.Contains(t, err.Error(), "startup context cancelled during backoff")
826+
assert.Contains(t, err.Error(), "load from Azure App Configuration timed out: context canceled")
827827
}
828828

829829
// Test startupWithRetry with default timeout when zero timeout provided

0 commit comments

Comments
 (0)