Skip to content
Snippets Groups Projects
Commit 9fba5440 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

Fixed params tests

parent 772b4518
Branches
Tags
No related merge requests found
......@@ -14,7 +14,10 @@ import (
)
var ExpectedNode = Node{
Id: "pneumonoultramicroscopicsilicovolcanoconios=",
Id: "Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE=",
Ids: []string{"Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE=",
"Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE=",
"Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE="},
Paths: ExpectedPaths,
Addresses: []string{
"127.0.0.1:80",
......@@ -37,7 +40,8 @@ func TestNode_UnmarshallingFileEqualsExpected(t *testing.T) {
}
if !reflect.DeepEqual(ExpectedNode, actual.Node) {
t.Errorf("Node object did not match expected value")
t.Errorf("Params node value does not match expected value\nActual: %v"+
"\nExpected: %v", actual.Node, ExpectedNode)
}
}
......@@ -2,7 +2,11 @@
# Example yaml params file used for testing
# the params object and its dependencies
node:
id: "pneumonoultramicroscopicsilicovolcanoconios="
id: "Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE="
ids:
- "Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE="
- "Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE="
- "Fb9JgRlv4AeF6EzgDNITvtK4dQRLc29nh3XtsLF86PE="
paths:
cert: "~/.elixxir/cert.crt"
key: "~/.elixxir/key.pem"
......
......@@ -45,7 +45,8 @@ func TestNewParams_ReturnsParamsWhenGivenValidViper(t *testing.T) {
}
if !reflect.DeepEqual(expectedParams.Node, params.Node) {
t.Errorf("Params node value does not match expected value")
t.Errorf("Params node value does not match expected value\nActual: %v"+
"\nExpected: %v", params.Node, expectedParams.Node)
}
if !reflect.DeepEqual(expectedParams.Database, params.Database) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment