Simplifies the Signals association test

This commit is contained in:
smavros 2019-04-28 17:16:21 +02:00
parent 77b5bbc6ff
commit 1c90cfa897

View file

@ -57,15 +57,9 @@ func TestDummyDBAssociations(t *testing.T) {
a.EqualValues("Host_A", simr.Host, "Expected Host_A")
a.NoError(db.Model(&smo).Related(&sigs, "OutputMapping").Error)
if len(sigs) != 2 {
if len(sigs) != 4 {
a.Fail("Simulation Model Associations",
"Expected to have %v Output Signals. Has %v.", 2, len(sigs))
}
a.NoError(db.Model(&smo).Related(&sigs, "InputMapping").Error)
if len(sigs) != 2 {
a.Fail("Simulation Model Associations",
"Expected to have %v Input Signals. Has %v.", 2, len(sigs))
"Expected to have %v Output AND Input Signals. Has %v.", 4, len(sigs))
}
// Simulation