remove test case
remove test case
@@ -228,25 +228,3 @@ func TestRouting_SegmentFile(t *testing.T) {
t.Errorf("Access-Control-Allow-Origin: %s", v)
}
}
-
-func TestRoutingInvalid_SegmentFile(t *testing.T) {
- logger := log.NewNopLogger()
- r := NewRepositoryInMemory(1*time.Minute, logger)
- svc := NewService(r)
- router := MakeHTTPHandler(svc, r, logger)
-
- req := httptest.NewRequest("POST", "/files/333339/segment", nil)
- req.Header.Set("Origin", "https://moov.io")
-
- w := httptest.NewRecorder()
- router.ServeHTTP(w, req)
- w.Flush()
-
- if w.Code != http.StatusOK {
- t.Errorf("bogus HTTP status: %d", w.Code)
- }
-
- if v := w.Result().Header.Get("Access-Control-Allow-Origin"); v != "https://moov.io" {
- t.Errorf("Access-Control-Allow-Origin: %s", v)
- }
-}
