@@ -79,21 +79,21 @@ func analyzeUpdateIndexStream(t *testing.T, cl commands.ArduinoCoreService_Updat
79
79
fmt .Printf ("UPDATE> %+v\n " , msg )
80
80
if progress := msg .GetDownloadProgress (); progress != nil {
81
81
if progress .Url != "" && progress .Url != ongoingDownload {
82
- require .Empty (t , ongoingDownload , "DownloadProgress: initiated a new download with closing the previous one" )
82
+ require .Empty (t , ongoingDownload , "DownloadProgress: started a download without 'completing' the previous one" )
83
83
ongoingDownload = progress .Url
84
84
}
85
85
if progress .Completed {
86
- require .NotEmpty (t , ongoingDownload , "DownloadProgress: sent a 'completed' download message without starting it " )
86
+ require .NotEmpty (t , ongoingDownload , "DownloadProgress: received a 'completed' notification but never initiated a download " )
87
87
ongoingDownload = ""
88
88
}
89
89
if progress .Downloaded > 0 {
90
- require .NotEmpty (t , ongoingDownload , "DownloadProgress: sent an update but never initiated a download" )
90
+ require .NotEmpty (t , ongoingDownload , "DownloadProgress: received a download update but never initiated a download" )
91
91
}
92
92
} else if result := msg .GetDownloadResult (); result != nil {
93
- require .Empty (t , ongoingDownload , "DownloadResult: got a download result with closing it first" )
93
+ require .Empty (t , ongoingDownload , "DownloadResult: got a download result with completing the current download first" )
94
94
results [result .Url ] = result
95
95
} else {
96
- require .FailNow (t , "DownloadProgress: received a message without a Progress or a Result" )
96
+ require .FailNow (t , "DownloadProgress: received an empty message ( without a Progress or a Result) " )
97
97
}
98
98
}
99
99
}
0 commit comments