Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
wxiaoguang committed Jan 10, 2025
commit dd352517d5ca08845a2f5de787f0fb06ca12f6ef
5 changes: 1 addition & 4 deletions tests/integration/repo_merge_upstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ func TestRepoMergeUpstream(t *testing.T) {
return false
}
respMsg, _ := htmlDoc.Find(".ui.message:not(.positive)").Html()
if !strings.Contains(respMsg, `This branch is 1 commit behind <a href="/user2/repo1/src/branch/master">user2/repo1:master</a>`) {
return false
}
return true
return strings.Contains(respMsg, `This branch is 1 commit behind <a href="/user2/repo1/src/branch/master">user2/repo1:master</a>`)
}, 5*time.Second, 100*time.Millisecond)

// click the "sync fork" button
Expand Down
Loading