Skip to content

Commit 56abf92

Browse files
committed
fix(gitreceive): fix checkForEnv logic
val != val is clearly never going to fail. Changed to expVal != val
1 parent 4634fe1 commit 56abf92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/k8s_util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func checkForEnv(t *testing.T, pod *api.Pod, key, expVal string) {
204204
if err != nil {
205205
t.Errorf("%v", err)
206206
}
207-
if val != val {
207+
if expVal != val {
208208
t.Errorf("expected %v but returned %v ", expVal, val)
209209
}
210210
}

0 commit comments

Comments
 (0)