mirror of
https://github.com/rust-lang/rust
synced 2024-09-18 16:02:39 +00:00
Fix integers in tests (fixup #22700)
This commit is contained in:
parent
2d74b53a03
commit
b182cd7245
|
@ -473,7 +473,7 @@ fn both_ready() {
|
|||
|
||||
#[test]
|
||||
fn stress() {
|
||||
static AMT: u32 = 10000;
|
||||
static AMT: i32 = 10000;
|
||||
let (tx1, rx1) = channel::<i32>();
|
||||
let (tx2, rx2) = channel::<i32>();
|
||||
let (tx3, rx3) = channel::<()>();
|
||||
|
|
|
@ -425,8 +425,8 @@ fn static_smoke() {
|
|||
#[test]
|
||||
fn frob() {
|
||||
static R: StaticRwLock = RW_LOCK_INIT;
|
||||
static N: u32 = 10;
|
||||
static M: u32 = 1000;
|
||||
static N: usize = 10;
|
||||
static M: usize = 1000;
|
||||
|
||||
let (tx, rx) = channel::<()>();
|
||||
for _ in 0..N {
|
||||
|
|
|
@ -142,7 +142,7 @@ mod test {
|
|||
use super::*;
|
||||
use sync::mpsc::channel;
|
||||
|
||||
const TEST_TASKS: u32 = 4;
|
||||
const TEST_TASKS: usize = 4;
|
||||
|
||||
#[test]
|
||||
fn test_works() {
|
||||
|
|
Loading…
Reference in a new issue