@@ -54,7 +54,7 @@ func genRandomSocketPath() string {
54
54
return p
55
55
}
56
56
57
- func runDirverAndWait4Complete (t * testing.T , driver Driver , returnError bool ) (progressMsgs []string , results string ) {
57
+ func runDriverAndWait4Complete (t * testing.T , driver Driver , returnError bool ) (progressMsgs []string , results string ) {
58
58
go func () {
59
59
if returnError {
60
60
assert .NotNil (t , driver .Run ())
@@ -88,7 +88,7 @@ func Test_Driver(t *testing.T) {
88
88
})
89
89
assert .Nil (t , err )
90
90
91
- runDirverAndWait4Complete (t , driver , false )
91
+ runDriverAndWait4Complete (t , driver , false )
92
92
93
93
assert .Nil (t , driver .Shutdown ())
94
94
assert .Nil (t , os .Remove ("./stderr.log" ))
@@ -105,7 +105,7 @@ func Test_Wait4Shutdown(t *testing.T) {
105
105
})
106
106
assert .Nil (t , err )
107
107
108
- runDirverAndWait4Complete (t , driver , false )
108
+ runDriverAndWait4Complete (t , driver , false )
109
109
110
110
// can still get the status even the user program finishes
111
111
time .Sleep (time .Second * 3 )
@@ -132,7 +132,7 @@ func Test_ProgressUpdate(t *testing.T) {
132
132
})
133
133
assert .Nil (t , err )
134
134
135
- msgs , _ := runDirverAndWait4Complete (t , driver , false )
135
+ msgs , _ := runDriverAndWait4Complete (t , driver , false )
136
136
137
137
assert .Equal (t , []string {
138
138
"initializing the evaluation job" ,
@@ -156,7 +156,7 @@ func Test_DetectDeviceError(t *testing.T) {
156
156
})
157
157
assert .Nil (t , err )
158
158
159
- msgs , _ := runDirverAndWait4Complete (t , driver , true )
159
+ msgs , _ := runDriverAndWait4Complete (t , driver , true )
160
160
assert .Equal (t , []string {
161
161
"failed to detect available device(s): exit status 1" ,
162
162
}, msgs )
@@ -216,7 +216,7 @@ func Test_TaskRecipes(t *testing.T) {
216
216
})
217
217
assert .Nil (t , err )
218
218
219
- msgs , _ := runDirverAndWait4Complete (t , driver , false )
219
+ msgs , _ := runDriverAndWait4Complete (t , driver , false )
220
220
221
221
assert .Equal (t , []string {
222
222
"initializing the evaluation job" ,
@@ -264,7 +264,7 @@ func Test_CustomCards(t *testing.T) {
264
264
265
265
os .Mkdir ("cards" , 0750 )
266
266
267
- msgs , _ := runDirverAndWait4Complete (t , driver , false )
267
+ msgs , _ := runDriverAndWait4Complete (t , driver , false )
268
268
269
269
assert .Equal (t , []string {
270
270
"initializing the evaluation job" ,
@@ -303,7 +303,7 @@ func Test_ProgramError(t *testing.T) {
303
303
})
304
304
assert .Nil (t , err )
305
305
306
- msgs , _ := runDirverAndWait4Complete (t , driver , true )
306
+ msgs , _ := runDriverAndWait4Complete (t , driver , true )
307
307
308
308
assert .Equal (t , []string {
309
309
"initializing the evaluation job" ,
0 commit comments