@@ -15,11 +15,11 @@ func TestCreateOrUpdateIssueWatch(t *testing.T) {
15
15
16
16
assert .NoError (t , CreateOrUpdateIssueWatch (3 , 1 , true ))
17
17
iw := AssertExistsAndLoadBean (t , & IssueWatch {UserID : 3 , IssueID : 1 }).(* IssueWatch )
18
- assert .Equal ( t , true , iw .IsWatching )
18
+ assert .True ( t , iw .IsWatching )
19
19
20
20
assert .NoError (t , CreateOrUpdateIssueWatch (1 , 1 , false ))
21
21
iw = AssertExistsAndLoadBean (t , & IssueWatch {UserID : 1 , IssueID : 1 }).(* IssueWatch )
22
- assert .Equal ( t , false , iw .IsWatching )
22
+ assert .False ( t , iw .IsWatching )
23
23
}
24
24
25
25
func TestGetIssueWatch (t * testing.T ) {
@@ -44,20 +44,20 @@ func TestGetIssueWatchers(t *testing.T) {
44
44
iws , err := GetIssueWatchers (1 )
45
45
assert .NoError (t , err )
46
46
// Watcher is inactive, thus 0
47
- assert .Equal (t , 0 , len ( iws ) )
47
+ assert .Len (t , iws , 0 )
48
48
49
49
iws , err = GetIssueWatchers (2 )
50
50
assert .NoError (t , err )
51
51
// Watcher is explicit not watching
52
- assert .Equal (t , 0 , len ( iws ) )
52
+ assert .Len (t , iws , 0 )
53
53
54
54
iws , err = GetIssueWatchers (5 )
55
55
assert .NoError (t , err )
56
56
// Issue has no Watchers
57
- assert .Equal (t , 0 , len ( iws ) )
57
+ assert .Len (t , iws , 0 )
58
58
59
59
iws , err = GetIssueWatchers (7 )
60
60
assert .NoError (t , err )
61
61
// Issue has one watcher
62
- assert .Equal (t , 1 , len ( iws ) )
62
+ assert .Len (t , iws , 1 )
63
63
}
0 commit comments