mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-18 03:20:53 +01:00
formatted
This commit is contained in:
parent
1065fff062
commit
c48c4dc83f
@ -156,4 +156,3 @@ func export() {
|
||||
fmt.Println(entry)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,13 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os/exec"
|
||||
"os"
|
||||
"os/exec"
|
||||
"regexp"
|
||||
"strings"
|
||||
"testing"
|
||||
"fmt"
|
||||
|
||||
"github.com/ddworken/hishtory/shared"
|
||||
)
|
||||
@ -50,7 +50,7 @@ func TestIntegrationWithNewDevice(t *testing.T) {
|
||||
gvm use go1.17
|
||||
cd /home/david/code/hishtory/
|
||||
go build -o /tmp/client client/client.go
|
||||
/tmp/client install ` + userSecret)
|
||||
/tmp/client install `+userSecret)
|
||||
match, err := regexp.MatchString(`Setting secret hishtory key to .*`, out)
|
||||
shared.Check(t, err)
|
||||
if !match {
|
||||
@ -131,7 +131,7 @@ func TestIntegrationWithNewDevice(t *testing.T) {
|
||||
t.Fatalf("output has `echo mynewercommand` the wrong number of times")
|
||||
}
|
||||
|
||||
// TODO: Test the live update flow
|
||||
// Manually submit an event that is tied to the second user, and then we'll check if we see it for the third user
|
||||
}
|
||||
|
||||
func testIntegration(t *testing.T) string {
|
||||
|
@ -20,8 +20,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/google/uuid"
|
||||
|
@ -71,7 +71,6 @@ func TestGetUserSecret(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func TestPersist(t *testing.T) {
|
||||
defer shared.BackupAndRestore(t)()
|
||||
db, err := OpenLocalSqliteDb()
|
||||
|
Loading…
Reference in New Issue
Block a user