fix: add --disable-gpu flag to Chromium / chore: upgrade base image to bullseye (#331)

This commit is contained in:
Julien Neuhart
2021-08-27 09:41:59 +02:00
committed by GitHub
parent 662d3ff795
commit a5828fa01a
6 changed files with 69 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
package chromium
import (
"testing"
"go.uber.org/zap"
)
func TestDebugLogger_Write(t *testing.T) {
actual, err := debugLogger{logger: zap.NewNop()}.Write([]byte("foo"))
expected := len([]byte("foo"))
if actual != expected {
t.Errorf("expected %d but got %d", expected, actual)
}
if err != nil {
t.Errorf("expected not error but got: %v", err)
}
}
func TestDebugLogger_Printf(t *testing.T) {
debugLogger{logger: zap.NewNop()}.Printf("%s", "foo")
}