@@ -15,11 +15,11 @@ func TestCreateOrUpdateIssueWatch(t *testing.T) {
1515
1616 assert .NoError (t , CreateOrUpdateIssueWatch (3 , 1 , true ))
1717 iw := AssertExistsAndLoadBean (t , & IssueWatch {UserID : 3 , IssueID : 1 }).(* IssueWatch )
18- assert .Equal ( t , true , iw .IsWatching )
18+ assert .True ( t , iw .IsWatching )
1919
2020 assert .NoError (t , CreateOrUpdateIssueWatch (1 , 1 , false ))
2121 iw = AssertExistsAndLoadBean (t , & IssueWatch {UserID : 1 , IssueID : 1 }).(* IssueWatch )
22- assert .Equal ( t , false , iw .IsWatching )
22+ assert .False ( t , iw .IsWatching )
2323}
2424
2525func TestGetIssueWatch (t * testing.T ) {
@@ -44,20 +44,20 @@ func TestGetIssueWatchers(t *testing.T) {
4444 iws , err := GetIssueWatchers (1 )
4545 assert .NoError (t , err )
4646 // Watcher is inactive, thus 0
47- assert .Equal (t , 0 , len ( iws ) )
47+ assert .Len (t , iws , 0 )
4848
4949 iws , err = GetIssueWatchers (2 )
5050 assert .NoError (t , err )
5151 // Watcher is explicit not watching
52- assert .Equal (t , 0 , len ( iws ) )
52+ assert .Len (t , iws , 0 )
5353
5454 iws , err = GetIssueWatchers (5 )
5555 assert .NoError (t , err )
5656 // Issue has no Watchers
57- assert .Equal (t , 0 , len ( iws ) )
57+ assert .Len (t , iws , 0 )
5858
5959 iws , err = GetIssueWatchers (7 )
6060 assert .NoError (t , err )
6161 // Issue has one watcher
62- assert .Equal (t , 1 , len ( iws ) )
62+ assert .Len (t , iws , 1 )
6363}
0 commit comments