From 1e52b4c7f95852c19158ff483cfa5beb1913e805 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Fri, 15 Oct 2021 12:30:11 +0100 Subject: [PATCH] change expected delete status to 202 --- internal/codespaces/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/codespaces/api/api.go b/internal/codespaces/api/api.go index 976a95bee..884e353f5 100644 --- a/internal/codespaces/api/api.go +++ b/internal/codespaces/api/api.go @@ -521,7 +521,7 @@ func (a *API) DeleteCodespace(ctx context.Context, codespaceName string) error { } defer resp.Body.Close() - if resp.StatusCode != http.StatusOK { + if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusAccepted { return api.HandleHTTPError(resp) }