update
This commit is contained in:
@ -87,7 +87,7 @@ tap.test('should allocate IPs using balanced policy', async () => {
|
||||
}
|
||||
|
||||
// We should use at least 2 different IPs with balanced policy
|
||||
expect(usedIPs.size >= 2).toBeTrue();
|
||||
expect(usedIPs.size >= 2).toEqual(true);
|
||||
});
|
||||
|
||||
// Test round robin allocation policy
|
||||
@ -122,7 +122,7 @@ tap.test('should allocate IPs using round robin policy', async () => {
|
||||
});
|
||||
|
||||
// Round robin should give us different IPs for consecutive calls
|
||||
expect(firstIP !== secondIP).toBeTrue();
|
||||
expect(firstIP !== secondIP).toEqual(true);
|
||||
|
||||
// With 3 IPs, the fourth call should cycle back to one of the IPs
|
||||
const fourthIP = ipWarmupManager.getBestIPForSending({
|
||||
@ -132,7 +132,7 @@ tap.test('should allocate IPs using round robin policy', async () => {
|
||||
});
|
||||
|
||||
// Check that the fourth IP is one of the 3 valid IPs
|
||||
expect(['192.168.1.1', '192.168.1.2', '192.168.1.3'].includes(fourthIP)).toBeTrue();
|
||||
expect(['192.168.1.1', '192.168.1.2', '192.168.1.3'].includes(fourthIP)).toEqual(true);
|
||||
});
|
||||
|
||||
// Test dedicated domain allocation policy
|
||||
@ -219,7 +219,7 @@ tap.test('should enforce daily sending limits', async () => {
|
||||
domain: 'example.com'
|
||||
});
|
||||
|
||||
expect(ip === '192.168.1.1').toBeTrue();
|
||||
expect(ip === '192.168.1.1').toEqual(true);
|
||||
|
||||
// Record 5 sends to reach the daily limit
|
||||
for (let i = 0; i < 5; i++) {
|
||||
@ -238,7 +238,7 @@ tap.test('should enforce daily sending limits', async () => {
|
||||
domain: 'example.com'
|
||||
});
|
||||
|
||||
expect(sixthIP === null).toBeTrue();
|
||||
expect(sixthIP === null).toEqual(true);
|
||||
});
|
||||
|
||||
// Test recording sends
|
||||
@ -307,7 +307,7 @@ tap.test('should assign IPs using dedicated domain policy', async () => {
|
||||
domain: 'example.com'
|
||||
});
|
||||
|
||||
expect(ip1again === ip1).toBeTrue();
|
||||
expect(ip1again === ip1).toEqual(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user