Skip to content

Commit

Permalink
Revert "mvcc: test inflight Hash to trigger Size on nil db"
Browse files Browse the repository at this point in the history
This reverts commit 994e8e4.

Since now etcdserver gracefully shuts down the gRPC server
  • Loading branch information
gyuho committed Apr 15, 2017
1 parent 73e40ae commit 8421017
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mvcc/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,20 +518,6 @@ func newTestKeyBytes(rev revision, tombstone bool) []byte {
return bytes
}

// TestStoreHashAfterForceCommit ensures that later Hash call to
// closed backend with ForceCommit does not panic.
func TestStoreHashAfterForceCommit(t *testing.T) {
be, tmpPath := backend.NewDefaultTmpBackend()
kv := NewStore(be, &lease.FakeLessor{}, nil)
defer os.Remove(tmpPath)

// as in EtcdServer.HardStop
kv.Close()
be.Close()

kv.Hash()
}

func newFakeStore() *store {
b := &fakeBackend{&fakeBatchTx{
Recorder: &testutil.RecorderBuffered{},
Expand Down

0 comments on commit 8421017

Please sign in to comment.