Skip to content

Commit

Permalink
[grid] Fixing DistributorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 25, 2022
1 parent adb5982 commit 3f44bc8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ public void shouldBeAbleToAddANodeAndCreateASession() {
distributor.newSession(createRequest(sessionCaps));
assertThatEither(result).isRight();
Session session = result.right().getSession();
assertThat(session.getCapabilities()).isEqualTo(sessionCaps);
assertThat(session.getCapabilities().getCapability("sausages"))
.isEqualTo(sessionCaps.getCapability("sausages"));
assertThat(session.getUri()).isEqualTo(routableUri);
}

Expand Down Expand Up @@ -275,7 +276,8 @@ public void creatingASessionAddsItToTheSessionMap() {
assertThatEither(result).isRight();
Session returned = result.right().getSession();
Session session = sessions.get(returned.getId());
assertThat(session.getCapabilities()).isEqualTo(sessionCaps);
assertThat(session.getCapabilities().getCapability("sausages"))
.isEqualTo(sessionCaps.getCapability("sausages"));
assertThat(session.getUri()).isEqualTo(routableUri);
}

Expand Down

0 comments on commit 3f44bc8

Please sign in to comment.