@@ -73,7 +73,7 @@ public static void setUp() throws Exception {
73
73
Persistence .feedSources .create (feedSourceCascadeDelete );
74
74
75
75
feedVersion = createFeedVersionFromGtfsZip (feedSource , "bart_old.zip" );
76
- feedVersionCascadeDelete = createFeedVersionFromGtfsZip (feedSourceCascadeDelete , "bart_old .zip" );
76
+ feedVersionCascadeDelete = createFeedVersionFromGtfsZip (feedSourceCascadeDelete , "caltrain_gtfs_lite .zip" );
77
77
78
78
// Create and run snapshot jobs
79
79
crateAndRunSnapshotJob (feedVersion .name , feedSource .id , feedVersion .namespace );
@@ -172,15 +172,15 @@ public void canPatchStopsConditionally() throws IOException {
172
172
void canCascadeDeleteStop () throws IOException , SQLException {
173
173
// Get a fresh feed source so that the editor namespace was updated after snapshot.
174
174
FeedSource freshFeedSource = Persistence .feedSources .getById (feedVersionCascadeDelete .feedSourceId );
175
- String stopId = "WARM " ;
175
+ String stopId = "Bayshore Caltrain " ;
176
176
String stopCountSql = getCountSql (freshFeedSource .editorNamespace , "stops" , stopId );
177
177
String stopTimesCountSql = getCountSql (freshFeedSource .editorNamespace , "stop_times" , stopId );
178
178
String patternStopsCountSql = getCountSql (freshFeedSource .editorNamespace , "pattern_stops" , stopId );
179
179
180
180
// Check for presence of stopId in stops, stop times and pattern stops.
181
181
assertThatSqlCountQueryYieldsExpectedCount (stopCountSql , 1 );
182
- assertThatSqlCountQueryYieldsExpectedCount (stopTimesCountSql , 522 );
183
- assertThatSqlCountQueryYieldsExpectedCount (patternStopsCountSql , 4 );
182
+ assertThatSqlCountQueryYieldsExpectedCount (stopTimesCountSql , 1 );
183
+ assertThatSqlCountQueryYieldsExpectedCount (patternStopsCountSql , 1 );
184
184
185
185
String path = String .format (
186
186
"/api/editor/secure/stop/%s/cascadeDeleteStop?feedId=%s&sessionId=test" ,
0 commit comments