mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
Support macaroons and TLS && Add arkd wallet cmds (#232)
* Update protos * Update handlers * Support macaroons and TLS * Add arkd cli * Minor fixes * Update deps * Fixes * Update makefile * Fixes * Fix * Fix * Fix * Remove trusted onboarding from client * Completely remove trusted onboarding * Fix compose files and add --no-macaroon flag to arkd cli * Lint * Remove e2e for trusted onboarding * Add sleep time
This commit is contained in:
committed by
GitHub
parent
059e837794
commit
57ce08f239
26
server/pkg/kvdb/test_utils.go
Normal file
26
server/pkg/kvdb/test_utils.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package kvdb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// RunTests is a helper function to run the tests in a package with
|
||||
// initialization and tear-down of a test kvdb backend.
|
||||
func RunTests(m *testing.M) {
|
||||
var close func() error
|
||||
|
||||
// os.Exit() does not respect defer statements
|
||||
code := m.Run()
|
||||
|
||||
if close != nil {
|
||||
err := close()
|
||||
if err != nil {
|
||||
fmt.Printf("Error: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
os.Exit(code)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user