зеркало из https://github.com/mozilla/normandy.git
Merge pull request #614 from Osmose/clear-classify-cache
Clear client classification cache during mock-server test runs.
This commit is contained in:
Коммит
81329c76fd
|
@ -38,6 +38,10 @@ this.ClientEnvironment = {
|
|||
return yield _classifyRequest;
|
||||
}),
|
||||
|
||||
clearClassifyCache() {
|
||||
_classifyRequest = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Test wrapper that mocks the server request for classifying the client.
|
||||
* @param {Object} data Fake server data to use
|
||||
|
|
|
@ -200,6 +200,7 @@ this.RecipeRunner = {
|
|||
|
||||
try {
|
||||
Storage.clearAllStorage();
|
||||
ClientEnvironment.clearClassifyCache();
|
||||
NormandyApi.clearIndexCache();
|
||||
yield this.start();
|
||||
} finally {
|
||||
|
|
Загрузка…
Ссылка в новой задаче