@@ -107,14 +107,14 @@ func TestActivityService_MarkNotificationsRead(t *testing.T) {
107107 })
108108
109109 ctx := context .Background ()
110- _ , err := client .Activity .MarkNotificationsRead (ctx , time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC ))
110+ _ , err := client .Activity .MarkNotificationsRead (ctx , Timestamp { time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )} )
111111 if err != nil {
112112 t .Errorf ("Activity.MarkNotificationsRead returned error: %v" , err )
113113 }
114114
115115 const methodName = "MarkNotificationsRead"
116116 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
117- return client .Activity .MarkNotificationsRead (ctx , time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC ))
117+ return client .Activity .MarkNotificationsRead (ctx , Timestamp { time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )} )
118118 })
119119}
120120
@@ -131,19 +131,19 @@ func TestActivityService_MarkRepositoryNotificationsRead(t *testing.T) {
131131 })
132132
133133 ctx := context .Background ()
134- _ , err := client .Activity .MarkRepositoryNotificationsRead (ctx , "o" , "r" , time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC ))
134+ _ , err := client .Activity .MarkRepositoryNotificationsRead (ctx , "o" , "r" , Timestamp { time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )} )
135135 if err != nil {
136136 t .Errorf ("Activity.MarkRepositoryNotificationsRead returned error: %v" , err )
137137 }
138138
139139 const methodName = "MarkRepositoryNotificationsRead"
140140 testBadOptions (t , methodName , func () (err error ) {
141- _ , err = client .Activity .MarkRepositoryNotificationsRead (ctx , "\n " , "\n " , time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC ))
141+ _ , err = client .Activity .MarkRepositoryNotificationsRead (ctx , "\n " , "\n " , Timestamp { time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )} )
142142 return err
143143 })
144144
145145 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
146- return client .Activity .MarkRepositoryNotificationsRead (ctx , "o" , "r" , time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC ))
146+ return client .Activity .MarkRepositoryNotificationsRead (ctx , "o" , "r" , Timestamp { time .Date (2006 , time .January , 02 , 15 , 04 , 05 , 0 , time .UTC )} )
147147 })
148148}
149149
@@ -331,8 +331,8 @@ func TestNotification_Marshal(t *testing.T) {
331331 },
332332 Reason : String ("r" ),
333333 Unread : Bool (true ),
334- UpdatedAt : & referenceTime ,
335- LastReadAt : & referenceTime ,
334+ UpdatedAt : & Timestamp { referenceTime } ,
335+ LastReadAt : & Timestamp { referenceTime } ,
336336 URL : String ("u" ),
337337 }
338338
@@ -383,7 +383,7 @@ func TestMarkReadOptions_Marshal(t *testing.T) {
383383 testJSONMarshal (t , & markReadOptions {}, "{}" )
384384
385385 u := & markReadOptions {
386- LastReadAt : referenceTime ,
386+ LastReadAt : Timestamp { referenceTime } ,
387387 }
388388
389389 want := `{
0 commit comments