diff --git a/v1/tsdb/shard_test.go b/v1/tsdb/shard_test.go
index <HASH>..<HASH> 100644
--- a/v1/tsdb/shard_test.go
+++ b/v1/tsdb/shard_test.go
@@ -166,6 +166,7 @@ func TestMaxSeriesLimit(t *testing.T) {
 	opts.Config.WALDir = filepath.Join(tmpDir, "wal")
 	opts.Config.MaxSeriesPerDatabase = 1000
 	opts.InmemIndex = inmem.NewIndex(filepath.Base(tmpDir), sfile.SeriesFile)
+	opts.IndexVersion = tsdb.InmemIndexName
 
 	sh := tsdb.NewShard(1, tmpShard, tmpWal, sfile.SeriesFile, opts)
fix(tsdb): MaxSeriesPerDatabase is only supported by the inmem index