Skip to content

Commit 09c7c90

Browse files
committed
Fix test
1 parent 3230afd commit 09c7c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/api_repo_get_contents_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ func TestAPIGetContentsRefFormats(t *testing.T) {
197197
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
198198
raw, err = io.ReadAll(resp.Body)
199199
assert.NoError(t, err)
200-
assert.EqualValues(t, "# test\n", string(raw))
200+
assert.EqualValues(t, "# a_file_path_with_40_characters_for_tests\n", string(raw))
201201

202202
// Test with a filepath with 40 characters and name is a commit SHA
203203
fileWith40c = setting.AppURL + "api/v1/repos/user13/repo11/raw/" + "65f1bf27bc3bf70f64657658635e66094edbcb4d"
204204
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
205205
raw, err = io.ReadAll(resp.Body)
206206
assert.NoError(t, err)
207-
assert.EqualValues(t, "# 65f1bf27bc3bf70f64657658635e66094edbcb4d\n", string(raw))
207+
assert.EqualValues(t, "# test\n", string(raw))
208208
})
209209
}

0 commit comments

Comments
 (0)