Skip to content
Snippets Groups Projects
Verified Commit 266fda10 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix tests

parent 2427dded
No related branches found
No related tags found
No related merge requests found
Pipeline #323481 passed
......@@ -7,7 +7,8 @@ import (
)
func TestMytokenEntry_Root(t *testing.T) {
parentRoot := mtid.New()
parentRoot, _ := mtid.New()
parentID, _ := mtid.New()
tests := []struct {
name string
mt MytokenEntry
......@@ -28,7 +29,7 @@ func TestMytokenEntry_Root(t *testing.T) {
{
name: "HasParentAndRoot",
mt: MytokenEntry{
ParentID: mtid.New(),
ParentID: parentID,
},
expected: false,
},
......
......@@ -5,6 +5,7 @@ import (
)
func TestMTID_HashValid(t *testing.T) {
id, _ := New()
tests := []struct {
name string
id MTID
......@@ -17,7 +18,7 @@ func TestMTID_HashValid(t *testing.T) {
},
{
name: "Valid",
id: New(),
id: id,
expected: true,
},
{
......@@ -43,6 +44,7 @@ func TestMTID_HashValid(t *testing.T) {
}
}
func TestMTID_Valid(t *testing.T) {
id, _ := New()
tests := []struct {
name string
id MTID
......@@ -55,7 +57,7 @@ func TestMTID_Valid(t *testing.T) {
},
{
name: "Valid",
id: New(),
id: id,
expected: true,
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment