@@ -101,9 +101,9 @@ func TestPublishRetrieveMultipleEntries(t *testing.T) {
101
101
psched := schedule .New ()
102
102
103
103
pEntries := []schedule.Entry {
104
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
105
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
106
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
104
+ {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
105
+ {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
106
+ {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
107
107
}
108
108
109
109
for _ , v := range pEntries {
@@ -164,9 +164,9 @@ func TestScheduleAlreadyExists(t *testing.T) {
164
164
// Try to publish a new schedule
165
165
166
166
pEntries := []schedule.Entry {
167
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
168
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
169
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
167
+ {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
168
+ {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
169
+ {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
170
170
}
171
171
172
172
psched2 := schedule .New ()
@@ -202,9 +202,9 @@ func TestScheduleAlreadyExistsConcurrency(t *testing.T) {
202
202
psched1 .Add (time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), grp .New ("imaginaryproject" , "test" , "us-west-2" , "" , "" ))
203
203
204
204
pEntries := []schedule.Entry {
205
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
206
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
207
- schedule. Entry {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
205
+ {Time : time .Date (2016 , time .June , 20 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
206
+ {Time : time .Date (2016 , time .June , 20 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
207
+ {Time : time .Date (2016 , time .June , 20 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
208
208
}
209
209
210
210
psched2 := schedule .New ()
@@ -282,9 +282,9 @@ func TestOnlyReturnsFromDayRequested(t *testing.T) {
282
282
psched2 := schedule .New ()
283
283
d2 := time .Date (2016 , time .June , 21 , 0 , 0 , 0 , 0 , loc )
284
284
pEntries := []schedule.Entry {
285
- schedule. Entry {Time : time .Date (2016 , time .June , 21 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
286
- schedule. Entry {Time : time .Date (2016 , time .June , 21 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
287
- schedule. Entry {Time : time .Date (2016 , time .June , 21 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
285
+ {Time : time .Date (2016 , time .June , 21 , 11 , 40 , 0 , 0 , loc ), Group : grp .New ("doesnotexist" , "test" , "us-east-1" , "" , "doesnotexist-foo-bar" )},
286
+ {Time : time .Date (2016 , time .June , 21 , 12 , 35 , 0 , 0 , loc ), Group : grp .New ("foobar" , "other" , "us-west-2" , "" , "foobar-baz-quux" )},
287
+ {Time : time .Date (2016 , time .June , 21 , 9 , 7 , 0 , 0 , loc ), Group : grp .New ("chaosguineapig" , "prod" , "us-east-1" , "" , "chaosguineapig-prod" )},
288
288
}
289
289
290
290
for _ , v := range pEntries {
0 commit comments