File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/scala/com/workday/warp/adapters/gatling Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .workday .warp .adapters .gatling
2
2
3
3
import com .workday .warp .adapters .gatling .traits .{HasDefaultTestName , HasWarpHooks }
4
- import com .workday .warp .collectors .{ AbstractMeasurementCollectionController , DefaultMeasurementCollectionController }
4
+ import com .workday .warp .collectors .AbstractMeasurementCollectionController
5
5
import com .workday .warp .common .CoreConstants .{UNDEFINED_TEST_ID => DEFAULT_TEST_ID }
6
+ import com .workday .warp .inject .WarpGuicer
6
7
import io .gatling .http .funspec .GatlingHttpFunSpec
7
8
8
9
/**
@@ -14,7 +15,7 @@ abstract class WarpFunSpec(val testId: String) extends GatlingHttpFunSpec with H
14
15
15
16
def this () = this (DEFAULT_TEST_ID )
16
17
17
- val controller : AbstractMeasurementCollectionController = new DefaultMeasurementCollectionController (this .canonicalName)
18
+ val controller : AbstractMeasurementCollectionController = WarpGuicer .getController (this .canonicalName, tags = List .empty )
18
19
19
20
before {
20
21
beforeStart()
Original file line number Diff line number Diff line change 1
1
package com .workday .warp .adapters .gatling
2
2
3
3
import com .workday .warp .adapters .gatling .traits .{HasDefaultTestName , HasWarpHooks }
4
- import com .workday .warp .collectors .{ AbstractMeasurementCollectionController , DefaultMeasurementCollectionController }
4
+ import com .workday .warp .collectors .AbstractMeasurementCollectionController
5
5
import com .workday .warp .common .CoreConstants .{UNDEFINED_TEST_ID => DEFAULT_TEST_ID }
6
+ import com .workday .warp .inject .WarpGuicer
6
7
import io .gatling .core .Predef .Simulation
7
8
8
9
/**
@@ -14,7 +15,7 @@ abstract class WarpSimulation(val testId: String) extends Simulation with HasDef
14
15
15
16
def this () = this (DEFAULT_TEST_ID )
16
17
17
- val controller : AbstractMeasurementCollectionController = new DefaultMeasurementCollectionController (this .canonicalName )
18
+ val controller : AbstractMeasurementCollectionController = WarpGuicer .getController (this .testId, tags = List .empty )
18
19
19
20
before {
20
21
beforeStart()
You can’t perform that action at this time.
0 commit comments