mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
Simplifies the Signals association test
This commit is contained in:
parent
77b5bbc6ff
commit
1c90cfa897
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue