mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: await trafficDataUsageStore.deleteAll where its being used (#6478)
## About the changes trafficDataUsageStore.deleteAll() wasn't being awaited in tests, leading to flaky tests. This PR ensures it's being awaited
This commit is contained in:
		
							parent
							
								
									8f105f9d30
								
							
						
					
					
						commit
						6f2bd546a6
					
				@ -62,7 +62,7 @@ test('upsert upserts', async () => {
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('getAll returns all', async () => {
 | 
			
		||||
    trafficDataUsageStore.deleteAll();
 | 
			
		||||
    await trafficDataUsageStore.deleteAll();
 | 
			
		||||
    const data1 = {
 | 
			
		||||
        day: new Date(),
 | 
			
		||||
        trafficGroup: 'default3',
 | 
			
		||||
@ -83,7 +83,7 @@ test('getAll returns all', async () => {
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('delete deletes the specified item', async () => {
 | 
			
		||||
    trafficDataUsageStore.deleteAll();
 | 
			
		||||
    await trafficDataUsageStore.deleteAll();
 | 
			
		||||
    const data1 = {
 | 
			
		||||
        day: new Date(),
 | 
			
		||||
        trafficGroup: 'default3',
 | 
			
		||||
@ -110,7 +110,7 @@ test('delete deletes the specified item', async () => {
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('can query for specific items', async () => {
 | 
			
		||||
    trafficDataUsageStore.deleteAll();
 | 
			
		||||
    await trafficDataUsageStore.deleteAll();
 | 
			
		||||
    const data1 = {
 | 
			
		||||
        day: new Date(),
 | 
			
		||||
        trafficGroup: 'default3',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user