Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/schollz/find
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Feb 10, 2017
2 parents cc5ef3e + 55be08a commit 683de11
Show file tree
Hide file tree
Showing 5 changed files with 701 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SOURCES := $(shell find $(SOURCEDIR) -name '*.go')

BINARY=findserver

VERSION=2.4
VERSION=2.4.1
BUILD_TIME=`date +%FT%T%z`
BUILD=`git rev-parse HEAD`

Expand Down
2 changes: 1 addition & 1 deletion fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestLearnFingerprintPOST(t *testing.T) {
resp := httptest.NewRecorder()
router.ServeHTTP(resp, req)
response := "{\"message\":\"Inserted fingerprint containing 18 APs for zack (find) at zakhome floor 2 office\",\"success\":true}"
assert.Equal(t, resp.Body.String(), response)
assert.Equal(t, response, resp.Body.String())
}

func TestLearnFingerprint(t *testing.T) {
Expand Down
13 changes: 13 additions & 0 deletions testing/calculate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
curl http://127.0.0.1:8003/calculate?group=testdb
Loading

0 comments on commit 683de11

Please sign in to comment.