File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -553,9 +553,9 @@ func TestIntegrationFlow(t *testing.T) {
553553 handler (w , req )
554554
555555 resp := w .Result ()
556- // Expect 503 due to external service failure
557- if resp .StatusCode != http .StatusServiceUnavailable {
558- t .Errorf ("Expected status 503 (external service unavailable), got %d" , resp .StatusCode )
556+ // Expect 503 due to external service failure or 500 if one of the payment steps randomly fails
557+ if resp .StatusCode != http .StatusServiceUnavailable && resp . StatusCode != http . StatusInternalServerError {
558+ t .Errorf ("Expected status 503 (external service unavailable) or 500 (internal error) , got %d" , resp .StatusCode )
559559 }
560560
561561 // Check response headers - trace ID should be propagated
You can’t perform that action at this time.
0 commit comments