Skip to content

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Dec 28, 2023
1 parent d15d739 commit a535575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit-tests/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def test_lm_cache():

lm_models = LMModels(g, lm_config, 0, 10)
lm_cache = LMCache(g, lm_models, tmpdirname)
lm_cache.update_cache(100)
ret = lm_cache.update_cache(100)
assert ret == True # This is the first time we need to compute the BERT embeddings.
assert len(lm_cache) == 1
assert len(lm_cache.ntypes) == 1
assert lm_cache.ntypes[0] == 'n0'
Expand Down

0 comments on commit a535575

Please sign in to comment.