瀏覽代碼

Replaces windows carriage return for windows tests

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 5 年之前
父節點
當前提交
7b8255c953
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/aci-e2e/e2e-aci_test.go

+ 3 - 0
tests/aci-e2e/e2e-aci_test.go

@@ -563,9 +563,12 @@ func TestUpSecrets(t *testing.T) {
 		endpoint := fmt.Sprintf("http://%s:%d", containerInspect.Ports[0].HostIP, containerInspect.Ports[0].HostPort)
 
 		output := HTTPGetWithRetry(t, endpoint+"/"+secret1Name, http.StatusOK, 2*time.Second, 20*time.Second)
+		// replace windows carriage return
+		output = strings.ReplaceAll(output, "\r", "")
 		assert.Equal(t, output, secret1Value)
 
 		output = HTTPGetWithRetry(t, endpoint+"/"+secret2Name, http.StatusOK, 2*time.Second, 20*time.Second)
+		output = strings.ReplaceAll(output, "\r", "")
 		assert.Equal(t, output, secret2Value)
 
 		t.Cleanup(func() {