summaryrefslogtreecommitdiffstats
path: root/integrations/internal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/internal_test.go')
-rw-r--r--integrations/internal_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/internal_test.go b/integrations/internal_test.go
index c22e951bc5..d58b8b0b4e 100644
--- a/integrations/internal_test.go
+++ b/integrations/internal_test.go
@@ -31,7 +31,7 @@ func assertProtectedBranch(t *testing.T, repoID int64, branchName string, isErr,
var branch models.ProtectedBranch
t.Log(string(resp.Body))
assert.NoError(t, json.Unmarshal(resp.Body, &branch))
- assert.Equal(t, canPush, branch.CanPush)
+ assert.Equal(t, canPush, !branch.IsProtected())
}
}