Skip to content

Commit 6426405

Browse files
author
Dave Syer
committed
Fix test (wrong assumption about order of repos)
1 parent 5d11cb6 commit 6426405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launcher/src/test/java/org/springframework/boot/loader/thin/DependencyResolverSettingsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testSnaphotsEnabledByDefault() throws Exception {
120120
List<ArtifactRepository> repositories = request.getRemoteRepositories();
121121
assertThat(repositories).filteredOnNull("snapshots").isEmpty();
122122
assertThat(repositories).hasSize(3);
123-
assertThat(repositories.get(2).getSnapshots().isEnabled()).isTrue();
123+
assertThat(repositories.get(0).getSnapshots().isEnabled()).isTrue();
124124
}
125125

126126
private ProjectBuildingRequest getProjectBuildingRequest(DependencyResolver resolver) {

0 commit comments

Comments
 (0)