-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathschedule_test.go
More file actions
47 lines (43 loc) · 1.39 KB
/
schedule_test.go
File metadata and controls
47 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
import (
"sync"
"testing"
)
func TestTargetObserver(t *testing.T) {
var wg sync.WaitGroup
tt := []struct {
routeID string
stationID string
httpStatus int
resultCode int
}{
// {"223000100", "203000066", http.StatusOK, 0},
// {"234000026", "203000066", http.StatusOK, 0},
// {"234000024", "203000066", http.StatusOK, 0},
// {"200000053", "203000066", http.StatusOK, 0},
// {"200000110", "203000066", http.StatusOK, 0},
// {"200000112", "203000066", http.StatusOK, 0},
// {"200000144", "203000066", http.StatusOK, 0},
// {"200000064", "203000066", http.StatusOK, 0},
// {"200000146", "203000066", http.StatusOK, 0},
// {"200000070", "203000066", http.StatusOK, 0},
// {"200000119", "203000066", http.StatusOK, 0},
// {"200000208", "203000066", http.StatusOK, 0},
// {"200000211", "203000066", http.StatusOK, 0},
// {"200000231", "203000066", http.StatusOK, 0},
// {"200000185", "203000066", http.StatusOK, 0},
// {"200000236", "203000066", http.StatusOK, 0},
// {"200000272", "203000066", http.StatusOK, 0},
// {"200000196", "203000066", http.StatusOK, 0},
// {"200000197", "203000066", http.StatusOK, 0},
// {"200000199", "203000066", http.StatusOK, 0},
// {"200000201", "203000066", http.StatusOK, 0},
// {"200000205", "203000066", http.StatusOK, 0},
}
for _, tc := range tt {
wg.Add(1)
defer wg.Done()
go TargetObserver(tc.routeID, tc.stationID)
}
wg.Wait()
}