@@ -66,7 +66,7 @@ func TestAPINotification(t *testing.T) {
66
66
67
67
// -- GET /repos/{owner}/{repo}/notifications -- multiple status-types
68
68
req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/repos/%s/%s/notifications?status-types=unread&status-types=pinned&token=%s" , user2 .Name , repo1 .Name , token ))
69
- resp = session . MakeRequest (t , req , http .StatusOK )
69
+ resp = MakeRequest (t , req , http .StatusOK )
70
70
DecodeJSON (t , resp , & apiNL )
71
71
72
72
assert .Len (t , apiNL , 2 )
@@ -80,7 +80,7 @@ func TestAPINotification(t *testing.T) {
80
80
// -- GET /notifications/threads/{id} --
81
81
// get forbidden
82
82
req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications/threads/%d?token=%s" , 1 , token ))
83
- resp = MakeRequest (t , req , http .StatusForbidden )
83
+ MakeRequest (t , req , http .StatusForbidden )
84
84
85
85
// get own
86
86
req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications/threads/%d?token=%s" , thread5 .ID , token ))
@@ -114,7 +114,7 @@ func TestAPINotification(t *testing.T) {
114
114
115
115
lastReadAt := "2000-01-01T00%3A50%3A01%2B00%3A00" // 946687801 <- only Notification 4 is in this filter ...
116
116
req = NewRequest (t , "PUT" , fmt .Sprintf ("/api/v1/repos/%s/%s/notifications?last_read_at=%s&token=%s" , user2 .Name , repo1 .Name , lastReadAt , token ))
117
- resp = MakeRequest (t , req , http .StatusResetContent )
117
+ MakeRequest (t , req , http .StatusResetContent )
118
118
119
119
req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications?status-types=unread&token=%s" , token ))
120
120
resp = MakeRequest (t , req , http .StatusOK )
@@ -123,7 +123,7 @@ func TestAPINotification(t *testing.T) {
123
123
124
124
// -- PATCH /notifications/threads/{id} --
125
125
req = NewRequest (t , "PATCH" , fmt .Sprintf ("/api/v1/notifications/threads/%d?token=%s" , thread5 .ID , token ))
126
- resp = MakeRequest (t , req , http .StatusResetContent )
126
+ MakeRequest (t , req , http .StatusResetContent )
127
127
128
128
assert .Equal (t , models .NotificationStatusUnread , thread5 .Status )
129
129
thread5 = unittest .AssertExistsAndLoadBean (t , & models.Notification {ID : 5 }).(* models.Notification )
0 commit comments