mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdhttp: add test for expiration time
This commit is contained in:
@@ -144,6 +144,17 @@ func TestApply(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
// POST ==> Create, with expiration
|
||||
{
|
||||
pb.Request{Method: "POST", Id: 1, Expiration: 1337},
|
||||
Response{Event: &store.Event{}},
|
||||
[]action{
|
||||
action{
|
||||
name: "Create",
|
||||
params: []interface{}{"", false, "", true, time.Unix(0, 1337)},
|
||||
},
|
||||
},
|
||||
},
|
||||
// PUT ==> Set
|
||||
{
|
||||
pb.Request{Method: "PUT", Id: 1},
|
||||
|
||||
Reference in New Issue
Block a user