Skip to content

Commit

Permalink
Remove obsolete workaround.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 617544537
  • Loading branch information
cpovirk authored and Jimfs Team committed Mar 20, 2024
1 parent aab741f commit ee9e524
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,8 @@ public void testSnapshot() {
root.link(Name.simple("bar"), regularFile(10));
root.link(Name.simple("abc"), regularFile(10));

/*
* If we inline this into the assertThat call below, javac resolves it to assertThat(SortedSet),
* which isn't available publicly. Our internal build system considers that to be an error, even
* though the code will compile fine externally by resolving to assertThat(Iterable) instead. So
* we avoid that by assigning to a non-SortedSet type here.
*/
ImmutableSet<Name> snapshot = root.snapshot();
// does not include . or .. and is sorted by the name
assertThat(snapshot)
assertThat(root.snapshot())
.containsExactly(Name.simple("abc"), Name.simple("bar"), Name.simple("foo"))
.inOrder();
}
Expand Down

0 comments on commit ee9e524

Please sign in to comment.