Skip to content

Commit c015a0f

Browse files
committed
address feedback
1 parent c94573b commit c015a0f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

store/json.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ func (kvs *jsonFileStore) Remove() {
246246
kvs.Mutex.Unlock()
247247
}
248248

249+
// Dump returns the contents of the store in string format, erroring if it could not be read
249250
func (kvs *jsonFileStore) Dump() (string, error) {
250251
kvs.Mutex.Lock()
251252
defer kvs.Mutex.Unlock()

store/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestKeyValuePairsAreWrittenAndReadCorrectly(t *testing.T) {
134134
// Dump empty store.
135135
_, err = kvs.Dump()
136136
if err == nil {
137-
t.Fatal("Expected store to be empty")
137+
t.Fatal("Expected store to not exist")
138138
}
139139

140140
// Write a key value pair.

0 commit comments

Comments
 (0)