Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Sanduleac <sanduleac.dan@gmail.com>
  • Loading branch information
dansanduleac committed Jul 4, 2019
1 parent 37a7d7c commit 7b3c53c
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,13 +1100,10 @@ class AlignmentIntegrationTest extends AbstractAlignmentSpec {
path 'start:start:1.0 -> foo:1.0'

path 'foo:1.0 -> bar:1.0'
path 'bar:1.0 -> baz:1.0'

path 'foo:1.1 -> bar:1.1'
path 'bar:1.1 -> baz:1.1'

'org:baz:1.0'()
'org:baz:1.1'()
'org:bar:1.0'()
'org:bar:1.1'()
}

given:
Expand All @@ -1128,9 +1125,8 @@ class AlignmentIntegrationTest extends AbstractAlignmentSpec {
module('start') group('start') alignsTo('1.0')
module('foo') tries('1.0') alignsTo('1.1') byVirtualPlatform()
module('bar') tries('1.0') alignsTo('1.1') byVirtualPlatform()
module('baz') tries('1.0') alignsTo('1.1') byVirtualPlatform()
}
run ':checkDeps', 'dependencyInsight', '--configuration', 'conf', '--dependency', 'baz'
run ':checkDeps', 'dependencyInsight', '--configuration', 'conf', '--dependency', 'bar'

then:
resolve.expectGraph {
Expand All @@ -1140,9 +1136,6 @@ class AlignmentIntegrationTest extends AbstractAlignmentSpec {
byConstraint("belongs to platform org:platform:1.1")
edge("org:bar:1.0", "org:bar:1.1") {
byConstraint("belongs to platform org:platform:1.1")
edge("org:baz:1.0", "org:baz:1.1") {
byConstraint("belongs to platform org:platform:1.1")
}
}
}
}
Expand Down

0 comments on commit 7b3c53c

Please sign in to comment.