@@ -102,6 +102,9 @@ func verifyDocuments(s *Txn, des []kv.Entity, ds []Document) {
102
102
}
103
103
104
104
func TestCreateRead (t * testing.T ) {
105
+ if testing .Short () {
106
+ t .Skip ("skipping slow test in -short mode" )
107
+ }
105
108
test := func (s_ kv.Txn ) {
106
109
s := New (s_ )
107
110
samples := sampleDocuments ("Test" , 5 )
@@ -112,6 +115,9 @@ func TestCreateRead(t *testing.T) {
112
115
}
113
116
114
117
func TestCreateUpdateRead (t * testing.T ) {
118
+ if testing .Short () {
119
+ t .Skip ("skipping slow test in -short mode" )
120
+ }
115
121
test := func (s_ kv.Txn ) {
116
122
s := New (s_ )
117
123
des := createDocuments (& s , sampleDocuments ("Initial" , 5 ))
@@ -125,6 +131,9 @@ func TestCreateUpdateRead(t *testing.T) {
125
131
}
126
132
127
133
func TestIterator (t * testing.T ) {
134
+ if testing .Short () {
135
+ t .Skip ("skipping slow test in -short mode" )
136
+ }
128
137
test := func (s_ kv.Txn ) {
129
138
s := New (s_ )
130
139
createDocuments (& s , sampleDocuments ("Foo" , 5 ))
@@ -175,6 +184,9 @@ func TestIterator(t *testing.T) {
175
184
}
176
185
177
186
func TestAllDocumentEntities (t * testing.T ) {
187
+ if testing .Short () {
188
+ t .Skip ("skipping slow test in -short mode" )
189
+ }
178
190
test := func (s_ kv.Txn ) {
179
191
s := New (s_ )
180
192
want := createDocuments (& s , sampleDocuments ("All" , 5 ))
0 commit comments