Skip to content

Commit

Permalink
Fix integers in tests (fixup #22700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 24, 2015
1 parent 2d74b53 commit b182cd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sync/mpsc/select.rs
Expand Up @@ -473,7 +473,7 @@ mod test {

#[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::<()>();
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/sync/rwlock.rs
Expand Up @@ -425,8 +425,8 @@ mod tests {
#[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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sync/task_pool.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit b182cd7

Please sign in to comment.