diff --git a/appstore/validator_test.go b/appstore/validator_test.go index aa78990..b6829d7 100644 --- a/appstore/validator_test.go +++ b/appstore/validator_test.go @@ -254,13 +254,9 @@ func TestVerifySandboxReceiptFailure(t *testing.T) { s := httptest.NewServer(redirectToSandbox()) defer s.Close() - sandboxServ := httptest.NewServer(sandboxTimeout()) - defer sandboxServ.Close() - client := New() client.URL = s.URL client.TimeOut = time.Second * 100 - client.SandboxURL = sandboxServ.URL req := IAPRequest{ ReceiptData: "dummy data", @@ -315,12 +311,6 @@ func sandboxSuccess() http.Handler { }) } -func sandboxTimeout() http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - // Do nothing and just dont return anything either - }) -} - func invalidResponse() http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if "POST" == r.Method {