Skip to content

Commit

Permalink
make sure all tests use protocol constant
Browse files Browse the repository at this point in the history
  • Loading branch information
elopezcastro authored Nov 10, 2023
1 parent 70590a7 commit d3bdcd2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void testSdlcLoaderRetriesOnSomeHttpResponses() throws Exception
configureWireMockForRetries();
SDLCLoader sdlcLoader = createSDLCLoader();

PureModelContextData pmcdLoaded = sdlcLoader.load(Lists.fixedSize.empty(), pointer, "v1_32_0", tracer.activeSpan());
PureModelContextData pmcdLoaded = sdlcLoader.load(Lists.fixedSize.empty(), pointer, CLIENT_VERSION, tracer.activeSpan());
Assert.assertNotNull(pmcdLoaded);

Object tries = tracer.finishedSpans()
Expand All @@ -112,7 +112,7 @@ public void testSdlcLoaderDoesNotRetryOnHardFailures() throws Exception

try
{
sdlcLoader.load(Lists.fixedSize.empty(), pointer, "v1_32_0", tracer.activeSpan());
sdlcLoader.load(Lists.fixedSize.empty(), pointer, CLIENT_VERSION, tracer.activeSpan());
Assert.fail("Should throw");
}
catch (EngineException e)
Expand All @@ -134,7 +134,7 @@ public void testSdlcLoaderForWorkspacesWithoutDependency() throws Exception

configureWireMockForRetries();
SDLCLoader sdlcLoader = createSDLCLoader();
PureModelContextData pmcdLoaded = sdlcLoader.load(Lists.fixedSize.empty(), pointer, "v1_32_0", tracer.activeSpan());
PureModelContextData pmcdLoaded = sdlcLoader.load(Lists.fixedSize.empty(), pointer, CLIENT_VERSION, tracer.activeSpan());
Assert.assertNotNull(pmcdLoaded);
Assert.assertEquals(1, pmcdLoaded.getElements().size());
Assert.assertEquals("pkg::pkg::myClass", pmcdLoaded.getElements().get(0).getPath());
Expand Down

0 comments on commit d3bdcd2

Please sign in to comment.