dont display t.Log/t.Logf as errors in github actions (#1508)
* fix tests and github action annotations Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
2ee0a43774
commit
c691d2c5a1
15
file_test.go
15
file_test.go
@ -53,8 +53,9 @@ func TestFileStoreDatabaseTable(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fileTest(s store.Store, t *testing.T) {
|
func fileTest(s store.Store, t *testing.T) {
|
||||||
t.Logf("Options %s %v\n", s.String(), s.Options())
|
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
|
||||||
|
t.Logf("Options %s %v\n", s.String(), s.Options())
|
||||||
|
}
|
||||||
// Read and Write an expiring Record
|
// Read and Write an expiring Record
|
||||||
if err := s.Write(&store.Record{
|
if err := s.Write(&store.Record{
|
||||||
Key: "Hello",
|
Key: "Hello",
|
||||||
@ -109,7 +110,7 @@ func fileTest(s store.Store, t *testing.T) {
|
|||||||
} else {
|
} else {
|
||||||
if len(results) != 2 {
|
if len(results) != 2 {
|
||||||
t.Errorf("Expected 2 items, got %d", len(results))
|
t.Errorf("Expected 2 items, got %d", len(results))
|
||||||
t.Logf("Table test: %v\n", spew.Sdump(results))
|
//t.Logf("Table test: %v\n", spew.Sdump(results))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +121,7 @@ func fileTest(s store.Store, t *testing.T) {
|
|||||||
t.Errorf("Couldn't read all \"foo\" keys, got %# v (%s)", spew.Sdump(results), err)
|
t.Errorf("Couldn't read all \"foo\" keys, got %# v (%s)", spew.Sdump(results), err)
|
||||||
} else if len(results) != 1 {
|
} else if len(results) != 1 {
|
||||||
t.Errorf("Expected 1 item, got %d", len(results))
|
t.Errorf("Expected 1 item, got %d", len(results))
|
||||||
t.Logf("Table test: %v\n", spew.Sdump(results))
|
//t.Logf("Table test: %v\n", spew.Sdump(results))
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.Delete("foo"); err != nil {
|
if err := s.Delete("foo"); err != nil {
|
||||||
@ -163,7 +164,7 @@ func fileTest(s store.Store, t *testing.T) {
|
|||||||
} else {
|
} else {
|
||||||
if len(results) != 3 {
|
if len(results) != 3 {
|
||||||
t.Errorf("Expected 3 items, got %d", len(results))
|
t.Errorf("Expected 3 items, got %d", len(results))
|
||||||
t.Logf("Table test: %v\n", spew.Sdump(results))
|
//t.Logf("Table test: %v\n", spew.Sdump(results))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -173,7 +174,7 @@ func fileTest(s store.Store, t *testing.T) {
|
|||||||
} else {
|
} else {
|
||||||
if len(results) != 2 {
|
if len(results) != 2 {
|
||||||
t.Errorf("Expected 2 items, got %d", len(results))
|
t.Errorf("Expected 2 items, got %d", len(results))
|
||||||
t.Logf("Table test: %v\n", spew.Sdump(results))
|
//t.Logf("Table test: %v\n", spew.Sdump(results))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -183,7 +184,7 @@ func fileTest(s store.Store, t *testing.T) {
|
|||||||
} else {
|
} else {
|
||||||
if len(results) != 1 {
|
if len(results) != 1 {
|
||||||
t.Errorf("Expected 1 item, got %d", len(results))
|
t.Errorf("Expected 1 item, got %d", len(results))
|
||||||
t.Logf("Table test: %# v\n", spew.Sdump(results))
|
// t.Logf("Table test: %# v\n", spew.Sdump(results))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := s.Delete("foo"); err != nil {
|
if err := s.Delete("foo"); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user