Skip to content

Commit

Permalink
fix test/update test function
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Turkmen <[email protected]>
  • Loading branch information
mrtrkmn committed Jul 8, 2020
1 parent 2cd1d16 commit 4b199df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions database/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (
"fmt"
"io/ioutil"
"os"
"strconv"
"testing"
"time"

pb "github.com/aau-network-security/haaukins-store/proto"
"github.com/dgrijalva/jwt-go"
Expand Down Expand Up @@ -307,9 +309,10 @@ func TestCloseEvent(t *testing.T) {
}
defer conn.Close()
c := pb.NewStoreClient(conn)

_, err = c.UpdateEventFinishDate(context.Background(), &pb.UpdateEventRequest{
EventId: "test",
newTag := fmt.Sprintf("%s-%s", "test", strconv.Itoa(int(time.Now().Unix())))
_, err = c.UpdateCloseEvent(context.Background(), &pb.UpdateEventRequest{
OldTag: "test",
NewTag: newTag,
FinishedAt: "2020-05-21 14:35:00",
})
if err != nil {
Expand Down

0 comments on commit 4b199df

Please sign in to comment.