You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2020/04/07 19:45:44 UTC

[trafficcontrol] branch master updated: Fix TO test failure (#4610)

This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 222087e  Fix TO test failure (#4610)
222087e is described below

commit 222087e50c587386d8d555f050dfbdbaa61057b5
Author: Steve Hamrick <sh...@users.noreply.github.com>
AuthorDate: Tue Apr 7 13:45:37 2020 -0600

    Fix TO test failure (#4610)
    
    * Fix test
    
    * forgot fail message
---
 traffic_ops/traffic_ops_golang/types/types_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/types/types_test.go b/traffic_ops/traffic_ops_golang/types/types_test.go
index 633e266..91ce0d9 100644
--- a/traffic_ops/traffic_ops_golang/types/types_test.go
+++ b/traffic_ops/traffic_ops_golang/types/types_test.go
@@ -163,8 +163,8 @@ func TestDeleteInvalidType(t *testing.T) {
 	if err == nil {
 		t.Fatalf("expected delete type to have an error")
 	}
-	if statusCode != http.StatusNotFound {
-		t.Fatalf("expected delete type to return a %v error", http.StatusNotFound)
+	if statusCode != http.StatusBadRequest {
+		t.Fatalf("expected delete type to return a %v error", http.StatusBadRequest)
 	}
 }